package com.fairytask.engine.components
{
	import com.fairytask.data.BaseData;
	
	import flash.display.MovieClip;
	
	public class BaseComponent extends MovieClip
	{
		//公共属性
		public var cType	:String	=	"";
		//提示框
		private var _alt	:String	=	"";
		
		public var editorData	:BaseData	=	new BaseData();
		public var editorEdit	:Boolean	=	true;
		protected var _skin	:String	=	"";
		//设置标签
		protected var _label		:String	=	"";
		
		public function BaseComponent()
		{
			super();
		}
		
		//系统自动生成
		//==================================================================================
		
		/**
		 * 皮肤 
		 */
		public function get skin():String
		{
			return _skin;
		}

		/**
		 * @private
		 */
		public function set skin(value:String):void
		{
			_skin = value;
		}

		public function set alt(value:String):void
		{
			_alt = value;
			//只对有值alt处理
			if(_alt==""||_alt==null)
			{
				return;
			}
			ToolTips.BindTip(this,_alt);
		}
		
		public function get alt():String
		{
			return _alt;
		}

		public function get label():String
		{
			return _label;
		}

		public function set label(value:String):void
		{
			_label = value;
		}


	}
}